package org.com.creationalPattern.builderPattern;

/**
 * 定义一个建造对象
 * @author Jonny
 * @version 1.0
 * @Description:
 * @date 2021/4/14 14:41
 */
public class X201 extends Computer {
    private String graphicsCard;      //显卡
    public X201(){
        this.setType("ThinkPad X201i");

    }

    public String getGraphicsCard() {
        return graphicsCard;
    }

    public void setGraphicsCard(String graphicsCard) {
        this.graphicsCard = graphicsCard;
    }

    public String toString(){
        return "型号："+this.getType()+"\n"+"CPU:"+this.getCUP()+"\n"
                +"内存:"+this.getRam()+"\n"+"硬盘:"+this.getGraphicsCard()+"\n"
                +"显示器:"+this.getMonitor()+"\n操作系统:"+this.getOS();
    }
}
